/**
 * Description: RegisterInfoService.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @Version1.0 2010-03-09 李韦 created
 */
package org.paradise.dms.services;

import java.util.List;

import org.paradise.dms.pojo.Swipcard;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.DaoException;

/**
 * Description: Copyright (c) 2008-2009 Neo. All Rights Reserved.
 * 
	 * @Version1.0 2010-03-09 李韦 created
 */
@Service
public interface SwipcardService {
	/**
	 * 
	 * Description: 增加一条刷卡记录信息
	 * 
	 * @Version1.0  2010-03-09 李韦 created
	 * @param swipcard
	 * @throws DaoException
	 */
	public boolean insertSwipcard(Swipcard swipcard) throws DaoException ;
	
	/**
	 * 
	 * Description: 删除一条刷卡记录
	 * 
	 * @Version1.0 2010-03-09 李韦 created
	 * @param swipcardid
	 * @return
	 */
	public boolean deleteSwipcard(int swipcardid) ;
	
	/**
	 * 
	 * Description: 取得一条刷卡记录
	 * 
	 * @Version1.0 2010-03-09 李韦 created
	 * @param swipcardid
	 *            刷卡记录的ID值
	 * @return
	 * @throws DaoException
	 */
	@SuppressWarnings("unchecked")
	public List<Swipcard> getSwipcard(int swipcardid)
			throws DaoException ;


	/**
	 * 
	 * Description: 取得所有刷卡记录
	 * 
	 * @Version1.0 2010-03-09 李韦 created
	 * @return
	 * @throws DaoException
	 */

	@SuppressWarnings("unchecked")
	public List<Swipcard> getSwipcards(String hostname) throws DaoException ;
}
